package edu.gmu.messages;
public class Student implements edu.gmu.middleware.Message{
public Student() { }
public int id;
public String name;

public void marshal(edu.gmu.streams.BlockOutputStream output) throws java.io.IOException{
    output.writeInt(id);
    output.writeUTF(name);
}

public void unmarshal(edu.gmu.streams.BlockInputStream input) throws java.io.IOException{
    this.id = input.readInt();
    this.name = input.readUTF();
}
}
